import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {HomeComponent} from './home.component';
import {EmployeeListComponent} from './employee-list/employee-list.component';
const routes: Routes = [{
  path: '',
  component: HomeComponent,
  children: [
    {path: '', redirectTo: 'employee-list', pathMatch: 'full'},
    {path: 'employee-list', component: EmployeeListComponent },
  ],
}];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class HomeRoutingModule {
}
